package com.lxy.cxcyxmmsbackend.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘新颖
 * @since 2024-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "QxglUser对象", description = "用户")
public class QxglUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编号 U-")
    @TableId(value = "USER_BH", type = IdType.ID_WORKER)
    private String userBh;

    @ApiModelProperty(value = "用户名")
    @TableField("USER_MC")
    private String userMc;

    @ApiModelProperty(value = "手机号")
    @TableField("USER_SJH")
    private String userSjh;

    @ApiModelProperty(value = "邮箱")
    @TableField("USER_YX")
    private String userYx;

    @ApiModelProperty(value = "密码")
    @TableField("USER_MM")
    private String userMm;

    @ApiModelProperty(value = "所属部门")
    @TableField("USER_BM")
    private String userBm;

    @ApiModelProperty(value = "所属部门")
    @TableField("USER_BMMC")
    private String userBmmc;

    @ApiModelProperty(value = "学院")
    @TableField("USER_XY")
    private String userXy;

    @ApiModelProperty(value = "学院名称")
    @TableField("USER_XYMC")
    private String userXymc;

    @ApiModelProperty(value = "角色编号")
    @TableField("ROLE_BH")
    private String roleBh;

    @ApiModelProperty(value = "角色名称")
    @TableField("ROLE_MC")
    private String roleMc;

    @ApiModelProperty(value = "用户登录时间")
    @TableField("LOGIN_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    @ApiModelProperty(value = "用户创建时间")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "项目编号")
    @TableField("XM_BH")
    private String xmBh;

    @ApiModelProperty(value = "项目编号")
    @TableField("XM_MC")
    private String xmMc;

    @ApiModelProperty(value = "学号/职工号")
    @TableField("USER_CODE")
    private String userCode;

    @ApiModelProperty(value = "班级")
    @TableField("USER_BJ")
    private String userBj;

    @ApiModelProperty(value = "状态 0已申请，1在使用 -1不可用 -2不予处理")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "头像图片地址")
    @TableField("AVATAR_URL")
    private String avatarUrl;


}
